package pro.cherish.knowledgedemoaop.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import pro.cherish.knowledgedemoaop.annotation.TestHandle;

/**
 * @author 创建人：cherish
 * @version 版本号：V1.0
 * <p>
 * ***************************修订记录************************************
 * 2019-09-28 cherish 创建该类功能。
 * **********************************************************************
 * </p>
 * @ClassName 类名：Tcontroller7
 * @Description 功能说明：
 * <p>
 * TODO
 * </p>
 * **********************************************************************
 * @date 创建日期： 2019-09-28 cherish
 */
@RestController
public class Tcontroller7 {
    @GetMapping("/t7")
    @TestHandle
    public Object t1(@RequestParam(defaultValue = "lys")  String name, Integer age ){
        System.out.println(name+"   "+age);
        return name;
    }

    public void say(String msg){
        System.out.println(msg);
    }
    private void speek(String msg){
        System.out.println(msg);
    }
}
